<%@ page import="com.depo.quiggle.view.controller.QglLogPendingAction" %>
<%@ page import="com.depo.quiggle.view.controller.JobEditAction" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--@elvariable id="actionBean" type="com.depo.quiggle.view.controller.JobEditAction"--%>
<%@ include file="/WEB-INF/jsp/include/taglibs.jsp" %>

<div class="dashboard-content">

    <div>Edit Job</div>
    <stripes:form class="job-edit-table table"  action="<%=JobEditAction.URL%>">
        <stripes:hidden name="jobId"/>
        <div class="table">
            <div class="tr">
                <label class="td c1">Agency</label>
                <label class="td c2">Date Taken</label>
                <label class="td c3">Estimated Pages</label>
                <label class="td c4">Scopist</label>
                <label class="td c5">Proofer</label>
                <label class="td c6">Case Name</label>
                <label class="td c7">Scopist Hours</label>
                <label class="td c8">Proofer Hours</label>
                <label class="td c9">Total A/R</label>
                <label class="td c10">Due Agency</label>
                <label class="td c11">Total Hours</label>
            </div>
            <div class="tr">
                <div class="td c1">${actionBean.job.agencyInitial}</div>
                <div class="td c2"><stripes:text name="job.takenDate" class="date-picker"/></div>
                <div class="td c3"><stripes:text name="job.estimatePages"/></div>
                <div class="td c4">${actionBean.job.scopistInitial}</div>
                <div class="td c5">${actionBean.job.prooferInitial}</div>
                <div class="td c6"><stripes:text name="job.caseName"/></div>
                <div class="td c7"><stripes:text name="job.scopistHours"/></div>
                <div class="td c8"><stripes:text name="job.prooferHours"/></div>
                <div class="td c9">A/R TODO</div>
                <div class="td c10"><stripes:text class="date-picker" name="job.agencyDueDate"/></div>
                <div class="td c11"><stripes:text name="job.totalHours"/></div>
            </div>
            <div class="tr">
                <label class="td c1">Type</label>
                <label class="td c2">Job#</label>
                <label class="td c3">Actual Pages</label>
                <label class="td c4">Scopist To</label>
                <label class="td c5">Proofer To</label>
                <label class="td c6">Witness</label>
                <label class="td c7">Scopist Actual PGS</label>
                <label class="td c8">Proofer Actual PGS</label>
                <label class="td c9">TOTAL A/P</label>
                <label class="td c10">Attorney Due</label>
                <label class="td c11">Hours to do</label>
            </div>
            <div class="tr">
                <div class="td c1"><stripes:text name="type"/></div>
                <div class="td c2"><stripes:text name="job.jobReference"/></div>
                <div class="td c3"><stripes:text name="job.actualPages"/></div>
                <div class="td c4"><stripes:text class="date-picker" name="job.scopistToDate"/></div>
                <div class="td c5"><stripes:text class="date-picker" name="job.prooferToDate"/></div>
                <div class="td c6"><stripes:text name="job.witness"/></div>
                <div class="td c7"><stripes:text name="job.scopistActualPages"/></div>
                <div class="td c8"><stripes:text name="job.prooferActualPages"/></div>
                <div class="td c9">A/P TODO</div>
                <div class="td c10"><stripes:text name="job.attyDueDate" class="date-picker"/></div>
                <div class="td c11"><stripes:text name="job.toDoHours"/></div>
            </div>
            <div class="tr">
                <label class="td c1">O+ #CC</label>
                <label class="td c2">Date Received</label>
                <label class="td c3">Date Delivered</label>
                <label class="td c4">Scopist From Date</label>
                <label class="td c5">Proofer From Date</label>
                <label class="td c6">Notes</label>
                <label class="td c7">Due Scopist</label>
                <label class="td c8">Due Proofer</label>
                <label class="td c9">TOTAL NET</label>
                <label class="td c10">Actual Turn-in</label>
                <label class="td c11">STATUS</label>
            </div>
            <div class="tr">
                <div class="td c1"><stripes:text name="job.ccPages"/></div>
                <div class="td c2"><stripes:text name="job.receivedDate" class="date-picker"/></div>
                <div class="td c3"><stripes:text name="job.deliveryDate" class="date-picker"/></div>
                <div class="td c3"><stripes:text name="job.scopistFromDate" class="date-picker"/></div>
                <div class="td c3"><stripes:text name="job.prooferFromDate" class="date-picker"/></div>
                <div class="td c6"><stripes:text name="job.notes"/></div>
                <div class="td c7">Due SC TODO</div>
                <div class="td c8">Due PR TODO</div>
                <div class="td c9">NET TODO</div>
                <div class="td c10"><stripes:text name="job.actualTurnInDate" class="date-picker"/></div>
                <div class="td c11">${actionBean.job.status.name}</div>
            </div>
            <div class="tr">
                <div class="td"><stripes:submit name="saveJob" value="Save"/> </div>
            </div>
        </div>
    </stripes:form>
</div>
